<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%url_blacklist_item}}".
 *
 * @property integer $id
 * @property integer $url_blacklist_id
 * @property string $url
 */
class UrlBlacklistItem extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%url_blacklist_item}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['url_blacklist_id', 'url'], 'required'],
            [['url_blacklist_id'], 'integer'],
            [['url'], 'string', 'max' => 128]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'url_blacklist_id' => 'Url Blacklist ID',
            'url' => 'Url',
        ];
    }
}
